import React from 'react'

import Head from './Head'

export default class Home10 extends React.Component {
  constructor(props) {
    super(props)

    this.state = {
      title: '头部-head'
    }
  }

  render() {
    return (
      <div>
        <h2>class-10 父组件 给 子组件传值</h2>
        <Head />

        <Head title='你猜猜' />

        <Head title={this.state.title}/>
      </div>
    )
  }
}